<div class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/">WebBlog</a>
        </div>
        <div>
            <ul class="nav navbar-nav">
                <li class="active"><a ui-sref=".">技术博文</a></li>
                <li><a href="#">个人随笔</a></li>
                <li><a ui-sref=".publish">发表文章</a></li>
                <!--<li class="dropdown">-->
                    <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown"> 随笔 <b class="caret"></b>-->
                    <!--</a>-->
                    <!--<ul class="dropdown-menu">-->
                        <!--<li><a href="#">jmeter</a></li>-->
                        <!--<li><a href="#">EJB</a></li>-->
                        <!--<li><a href="#">Jasper Report</a></li>-->
                        <!--<li class="divider"></li>-->
                        <!--<li><a href="#">分离的链接</a></li>-->
                        <!--<li class="divider"></li>-->
                        <!--<li><a href="#">另一个分离的链接</a></li>-->
                    <!--</ul>-->
                <!--</li>-->
            </ul>
        </div>
        <p class="navbar-text navbar-right">
            <!--<% if (!user) { %>-->
            <a class="navbar-link" href="#" data-toggle="modal" data-target="#signupModal">注册</a>
            <span>&nbsp;|&nbsp;</span>
            <a class="navbar-link" href="#" data-toggle="modal" data-target="#signinModal">登陆</a>
            <!--<% } else { %>-->
            <!--<span>欢迎&nbsp;<%= user[0].username%>&nbsp;使用本博客</span>-->
            <!--<span>&nbsp;|&nbsp;</span>-->
            <!--<a class="navbar-link" href="/users/logout">注销</a>-->
            <!--<% } %>-->
        </p>
    </div>
</div>
<div id="signupModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <form method="POST" id="reg_form">
                <div class="modal-header">注册</div>
                <div class="modal-body">
                    <div class="form-group">
                        <label>用户名</label>
                        <input class="form-control" name="username" value="" type="text"/>
                    </div>
                    <div class="form-group">
                        <label>密&emsp;码</label>
                        <input class="form-control" name="password" value="" type="password"/>
                    </div>
                    <div class="form-group">
                        <label>确认密码</label>
                        <input class="form-control" name="re_password" value="" type="password"/>
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" type="button" data-dismiss="modal">关闭</button>
                    <button class="btn btn-default btn-primary reg">注册</button>
                </div>
            </form>
        </div>
    </div>
</div>
<div id="signinModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <form id="login_form">
                <div class="modal-header">登陆</div>
                <div class="modal-body">
                    <div class="form-group">
                        <label>用户名</label>
                        <input class="form-control" name="username" type="text"/>
                    </div>
                    <div class="form-group">
                        <label>密&emsp;码</label>
                        <input class="form-control" name="password" type="password"/>
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" type="button" data-dismiss="modal">关闭</button>
                    <button class="btn btn-default btn-primary login">登陆</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!--<div class="col-md-12" style="color: #ffffff;">-->
    <!--&lt;!&ndash;<h2 style="font-weight: bold">文章管理系统</h2>&ndash;&gt;-->
    <br>
    <br>
<!--</div>-->